package com.luotianacg.mode.strategyDesignPattern;

/**
 * @Author: luotian
 * @Date: 2023/4/5 21:50
 */
public class EraserDuck extends Duck{
    public EraserDuck(){
        flyBehavior=new FlyNoWay();
        honkBehavior=new HonkYa();
    }

    @Override
    public void display() {
        System.out.println("我是橡皮鸭！");
    }
}
